﻿using Common.Enum;
using Entity.ERP.View.PurchaseOrderItem;
using Entity.ERP.View.SaleOrderItem;
using static Common.Enum.StateEnum;

namespace Entity.ERP.View.SaleOrder
{
    /// <summary>
    /// 采购订单源单视图模型
    /// </summary>
    public class PurchaseOrderSourceView
    {
        /// <summary>
        /// 采购订单 ID
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 采购编码
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 流转卡号
        /// </summary>
        public string CardNo { get; set; }

        /// <summary>
        /// 供应商 Id
        /// </summary>
        public string SupplierId { get; set; }

        /// <summary>
        /// 供应商编码
        /// </summary>
        public string SupplierCode { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        public string SupplierName { get; set; }

        /// <summary>
        ///供应商联系电话
        /// </summary>
        public string SupplierPhone { get; set; }

        /// <summary>
        /// 订单状态
        /// </summary>
        public PurchaseType Status { get; set; }

        /// <summary>
        /// 审核状态
        /// </summary>
        public ExamStatus ExamStatus { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }

        /// <summary>
        /// 附件
        /// </summary>
        public string? File { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 采购订单子单
        /// </summary>
        public ICollection<PurchaseOrderItemView> Items { get; set; }
    }
}
